!function(){"use strict";var e,t={462:function(){var e=window.wp.element,t=window.wp.i18n;const a=e=>{window.postMessage({call:"showcaseCTAPreviewDispatch",value:e},"*")},s=[{id:"0","body-font-family":"'Source Sans Pro', sans-serif","body-font-variant":"","body-font-weight":400,"font-size-body":{desktop:16,tablet:"",mobile:"","desktop-unit":"px","tablet-unit":"px","mobile-unit":"px"},"body-line-height":"","headings-font-family":"'Playfair Display', serif","headings-font-weight":700,"headings-line-height":"","headings-font-variant":""},{id:"1","body-font-family":"'Lato', sans-serif","body-font-variant":"","body-font-weight":400,"font-size-body":{desktop:16,tablet:"",mobile:"","desktop-unit":"px","tablet-unit":"px","mobile-unit":"px"},"body-line-height":"","headings-font-family":"'Poppins', sans-serif","headings-font-weight":700,"headings-line-height":"","headings-font-variant":""},{id:"2","body-font-family":"'Lato', sans-serif","body-font-variant":"","body-font-weight":400,"font-size-body":{desktop:17,tablet:"",mobile:"","desktop-unit":"px","tablet-unit":"px","mobile-unit":"px"},"body-line-height":"","headings-font-family":"'Montserrat', sans-serif","headings-font-weight":700,"headings-line-height":"","headings-font-variant":""},{id:"3","body-font-family":"'Karla', sans-serif","body-font-variant":"","body-font-weight":400,"font-size-body":{desktop:17,tablet:"",mobile:"","desktop-unit":"px","tablet-unit":"px","mobile-unit":"px"},"body-line-height":"","headings-font-family":"'Rubik', sans-serif","headings-font-weight":700,"headings-line-height":"","headings-font-variant":""},{id:"4","body-font-family":"'Roboto', sans-serif","body-font-variant":"","body-font-weight":400,"font-size-body":{desktop:16,tablet:"",mobile:"","desktop-unit":"px","tablet-unit":"px","mobile-unit":"px"},"body-line-height":"","headings-font-family":"'Roboto Condensed', sans-serif","headings-font-weight":700,"headings-line-height":"","headings-font-variant":""},{id:"5","body-font-family":"'Inter', sans-serif","body-font-variant":"","body-font-weight":400,"font-size-body":{desktop:17,tablet:"",mobile:"","desktop-unit":"px","tablet-unit":"px","mobile-unit":"px"},"body-line-height":"","headings-font-family":"'Merriweather', serif","headings-font-weight":700,"headings-line-height":"","headings-font-variant":""},{id:"6","body-font-family":"'Open Sans', sans-serif","body-font-variant":"","body-font-weight":400,"font-size-body":{desktop:16,tablet:"",mobile:"","desktop-unit":"px","tablet-unit":"px","mobile-unit":"px"},"body-line-height":"","headings-font-family":"'Vollkorn', serif","headings-font-weight":700,"headings-line-height":"","headings-font-variant":""},{id:"7","body-font-family":"'Work Sans', sans-serif","body-font-variant":"","body-font-weight":400,"font-size-body":{desktop:16,tablet:"",mobile:"","desktop-unit":"px","tablet-unit":"px","mobile-unit":"px"},"body-line-height":"","headings-font-family":"'Open Sans', sans-serif","headings-font-weight":700,"headings-line-height":"","headings-font-variant":""}],o=JSON.parse(localStorage.getItem("showcase-cta-preview-data"));let n="",i="";if(o&&o.url===showcaseCTA.path){if(o.data.siteTypography){const e=s.find((e=>e["headings-font-family"]===o.data.siteTypography["headings-font-family"]));i=e&&e.id}n=o.data.colorPalette&&o.data.colorPalette.slug}const l={sidebarOpen:!1,selectedTypographyIndex:i,typography:{},selectedColorPallete:n,activePalette:{},firstTimeShown:!1};const r=(0,e.createContext)(),c=()=>(0,e.useContext)(r),{astraColorPaletteReorganized:d=!0}=showcaseCTA,m=[{slug:"style-1",title:(0,t.__)("Style 1","astra-sites"),colors:["#8E43F0","#7215EA","#FFFFFF","#EEEBF4",d?"#494153":"#150E1F",d?"#150E1F":"#494153",d?"#4B4F58":"#000000",d?"#000000":"#4B4F58","#F6F7F8"]},{slug:"style-2",title:(0,t.__)("Style 2","astra-sites"),colors:["#EF4D48","#D90700","#FFFFFF","#EEEAEC",d?"#3C2F32":"#2B161B",d?"#2B161B":"#3C2F32",d?"#4B4F58":"#000000",d?"#000000":"#4B4F58","#F6F7F8"]},{slug:"style-3",title:(0,t.__)("Style 3","astra-sites"),colors:["#FF42B3","#FF0099","#FFFFFF","#EEEAEC",d?"#3C2F32":"#2B161B",d?"#2B161B":"#3C2F32",d?"#4B4F58":"#000000",d?"#000000":"#4B4F58","#F6F7F8"]},{slug:"style-4",title:(0,t.__)("Style 4","astra-sites"),colors:["#FF6A97","#FA036B","#FFFFFF","#EEEAEC",d?"#3C2F32":"#2B161B",d?"#2B161B":"#3C2F32",d?"#4B4F58":"#000000",d?"#000000":"#4B4F58","#F6F7F8"]},{slug:"style-5",title:(0,t.__)("Style 5","astra-sites"),colors:["#FF7A3D","#FF5100","#FFFFFF","#F1EDEB",d?"#443D3A":"#1E1810",d?"#1E1810":"#443D3A",d?"#4B4F58":"#000000",d?"#000000":"#4B4F58","#F6F7F8"]},{slug:"style-6",title:(0,t.__)("Style 6","astra-sites"),colors:["#F9C349","#FFB100","#FFFFFF","#F0EFEC",d?"#4D4A46":"#1E1810",d?"#1E1810":"#4D4A46",d?"#4B4F58":"#000000",d?"#000000":"#4B4F58","#F6F7F8"]},{slug:"style-7",title:(0,t.__)("Style 7","astra-sites"),colors:["#30C7B5","#00AC97","#FFFFFF","#F0EFEC",d?"#4D4A46":"#1E1810",d?"#1E1810":"#4D4A46",d?"#4B4F58":"#000000",d?"#000000":"#4B4F58","#F6F7F8"]},{slug:"style-8",title:(0,t.__)("Style 8","astra-sites"),colors:["#1BAE70","#06752E","#FFFFFF","#EBECEB",d?"#3D4641":"#14261C",d?"#14261C":"#3D4641",d?"#4B4F58":"#000000",d?"#000000":"#4B4F58","#F6F7F8"]},{slug:"style-9",title:(0,t.__)("Style 9","astra-sites"),colors:["#2FE6FF","#00D0EC","#FFFFFF","#E8EBEC",d?"#3B4244":"#101218",d?"#101218":"#3B4244",d?"#4B4F58":"#000000",d?"#000000":"#4B4F58","#F6F7F8"]},{slug:"style-10",title:(0,t.__)("Style 10","astra-sites"),colors:["#4175FC","#084AF3","#FFFFFF","#E8EBEC",d?"#3B4244":"#101218",d?"#101218":"#3B4244",d?"#4B4F58":"#000000",d?"#000000":"#4B4F58","#F6F7F8"]}],F=[{slug:"style-1",title:(0,t.__)("Style 1","astra-sites"),colors:["#0067FF","#005EE9","#0F172A","#364151",d?"#FFFFFF":"#E7F6FF",d?"#E7F6FF":"#FFFFFF",d?"#070614":"#D1DAE5",d?"#D1DAE5":"#070614","#222222"]},{slug:"style-2",title:(0,t.__)("Style 2","astra-sites"),colors:["#54B435","#379237","#0F172A","#2F3B40",d?"#FFFFFF":"#EDFBE2",d?"#EDFBE2":"#FFFFFF",d?"#0C1406":"#D5EAD8",d?"#D5EAD8":"#0C1406","#222222"]},{slug:"style-3",title:(0,t.__)("Style 3","astra-sites"),colors:["#DD183B","#CC1939","#0F172A","#3A3A3A",d?"#FFFFFF":"#FFEDE6",d?"#FFEDE6":"#FFFFFF",d?"#140609":"#FFD1BF",d?"#FFD1BF":"#140609","#222222"]},{slug:"style-4",title:(0,t.__)("Style 4","astra-sites"),colors:["#FB5FAB","#EA559D","#0F172A","#454F5E",d?"#FFFFFF":"#FCEEF5",d?"#FCEEF5":"#FFFFFF",d?"#140610":"#FAD8E9",d?"#FAD8E9":"#140610","#222222"]},{slug:"style-5",title:(0,t.__)("Style 5","astra-sites"),colors:["#FF6210","#F15808","#1C0D0A","#353535",d?"#FFFFFF":"#FEF1E4",d?"#FEF1E4":"#FFFFFF",d?"#140B06":"#E5D7D1",d?"#E5D7D1":"#140B06","#222222"]},{slug:"style-6",title:(0,t.__)("Style 6","astra-sites"),colors:["#6528F7","#5511F8","#0F172A","#454F5E",d?"#FFFFFF":"#F2F0FE",d?"#F2F0FE":"#FFFFFF",d?"#0D0614":"#D8D8F5",d?"#D8D8F5":"#0D0614","#222222"]},{slug:"style-7",title:(0,t.__)("Style 7","astra-sites"),colors:["#FD9800","#E98C00","#0F172A","#454F5E",d?"#FFFFFF":"#FEF9E1",d?"#FEF9E1":"#FFFFFF",d?"#141006":"#F9F0C8",d?"#F9F0C8":"#141006","#222222"]},{slug:"style-8",title:(0,t.__)("Style 8","astra-sites"),colors:["#1B9C85","#178E79","#0F172A","#454F5E",d?"#FFFFFF":"#EDF6EE",d?"#EDF6EE":"#FFFFFF",d?"#06140C":"#D4F3D7",d?"#D4F3D7":"#06140C","#222222"]},{slug:"style-9",title:(0,t.__)("Style 9","astra-sites"),colors:["#DCA54A","#D09A40","#0F172A","#4A4A4A",d?"#FFFFFF":"#FAF5E5",d?"#FAF5E5":"#FFFFFF",d?"#141004":"#F0E6C5",d?"#F0E6C5":"#141004","#222222"]},{slug:"style-10",title:(0,t.__)("Style 10","astra-sites"),colors:["#3AA6B9","#2997AA","#0F172A","#454F5E",d?"#FFFFFF":"#E9F8F9",d?"#E9F8F9":"#FFFFFF",d?"#181823":"#CAE6E8",d?"#CAE6E8":"#181823","#222222"]}];var f=window.React,h=f.forwardRef((function({title:e,titleId:t,...a},s){return f.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:s,"aria-labelledby":t},a),e?f.createElement("title",{id:t},e):null,f.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0l3.181 3.183a8.25 8.25 0 0013.803-3.7M4.031 9.865a8.25 8.25 0 0113.803-3.7l3.181 3.182m0-4.991v4.99"}))})),u=()=>{const[{selectedColorPallete:s},o]=c(),[n,i]=(0,e.useState)([]),l=e=>{o({type:"set",selectedColorPallete:e.slug,activePalette:e}),a({param:"colorPalette",data:e})};(0,e.useEffect)((()=>{const e=(e=>{let a=[];if(e){const s=e["astra-settings"]["global-color-palette"].palette||[];s&&(a=[{slug:"default",title:(0,t.__)("DEFAULT COLORS","astra-sites"),colors:s}])}return a})(showcaseCTA.customizerData);i(e)}),[]);const r="light"===showcaseCTA.templateColorScheme?F:m,d=(t,a)=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"h-[16px] w-[16px] rounded-full "+("#ffffff"===t.toLowerCase()?"border border-gray-200":""),style:{backgroundColor:t}}),(0,e.createElement)("div",{className:"h-[16px] w-[16px] rounded-full "+("#ffffff"===a.toLowerCase()?"border border-gray-200":""),style:{backgroundColor:a}}));return(0,e.createElement)("div",{className:"flex flex-col mt-4"},(0,e.createElement)("div",{className:"flex align-center justify-between items-center mb-2"},(0,e.createElement)("p",{className:"text-[14px] font-bold text-gray-800 m-0 leading-[27px]"},(0,t.__)("Try Other Colors","astra-sites-server")),(0,e.createElement)("div",{className:"text-[12px] text-gray-800 "+(""===s||"default"===s?"reset-btn opacity-40 cursor-not-allowed":"reset-btn active cursor-pointer"),onClick:()=>{o({type:"set",selectedColorPallete:"",activePalette:{}}),a({param:"colorPalette",data:""})}},(0,e.createElement)(h,{className:"w-4"}))),(0,e.createElement)("div",{className:"grid grid-cols-4 pt-[5px] pb-[30px] gap-[10px] border-solid border-gray-300"},n.map(((t,a)=>{const o=t.colors[0]||"",n=t.colors[1]||"";return(0,e.createElement)("div",{className:`flex justify-center items-center gap-3 text-body-text rounded-md border border-solid border-button-disabled h-9 w-full cursor-pointer\n ${""===s||"default"===s?"outline-1 outline outline-offset-2 outline-accent-st-secondary":""}\n\t\t\t\t\t\t\thover:transition-all hover:duration-300 hover:ease-linear`,key:a,onClick:()=>l(t)},(0,e.createElement)("div",{className:"flex gap-2"},d(o,n)))})),r.map(((t,a)=>{const o=t.colors[0]||"",n=t.colors[1]||"";return(0,e.createElement)("div",{className:`flex justify-center items-center gap-3 text-body-text rounded-md border border-solid border-button-disabled h-9 w-full cursor-pointer\n ${s===t.slug?"outline-1 outline outline-offset-2 outline-accent-st-secondary":""}\n\t\t\t\t\t\t\thover:transition-all hover:duration-300 hover:ease-linear`,key:a,onClick:()=>l(t)},(0,e.createElement)("div",{className:"flex gap-2"},d(o,n)))}))))};const p={customize:(0,e.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"}," ",(0,e.createElement)("path",{d:"M7 0.25C3.2725 0.25 0.25 3.2725 0.25 7C0.25 10.7275 3.2725 13.75 7 13.75C7.6225 13.75 8.125 13.2475 8.125 12.625C8.125 12.3325 8.0125 12.07 7.8325 11.8675C7.66 11.6725 7.5475 11.41 7.5475 11.125C7.5475 10.5025 8.05 10 8.6725 10H10C12.07 10 13.75 8.32 13.75 6.25C13.75 2.935 10.7275 0.25 7 0.25ZM2.875 7C2.2525 7 1.75 6.4975 1.75 5.875C1.75 5.2525 2.2525 4.75 2.875 4.75C3.4975 4.75 4 5.2525 4 5.875C4 6.4975 3.4975 7 2.875 7ZM5.125 4C4.5025 4 4 3.4975 4 2.875C4 2.2525 4.5025 1.75 5.125 1.75C5.7475 1.75 6.25 2.2525 6.25 2.875C6.25 3.4975 5.7475 4 5.125 4ZM8.875 4C8.2525 4 7.75 3.4975 7.75 2.875C7.75 2.2525 8.2525 1.75 8.875 1.75C9.4975 1.75 10 2.2525 10 2.875C10 3.4975 9.4975 4 8.875 4ZM11.125 7C10.5025 7 10 6.4975 10 5.875C10 5.2525 10.5025 4.75 11.125 4.75C11.7475 4.75 12.25 5.2525 12.25 5.875C12.25 6.4975 11.7475 7 11.125 7Z",fill:"#2563EB"})," "),cart:(0,e.createElement)("svg",{width:"18",height:"18",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"}," ",(0,e.createElement)("path",{d:"M4.66666 11.0002C3.93332 11.0002 3.33999 11.6002 3.33999 12.3335C3.33999 13.0668 3.93332 13.6668 4.66666 13.6668C5.39999 13.6668 5.99999 13.0668 5.99999 12.3335C5.99999 11.6002 5.39999 11.0002 4.66666 11.0002ZM0.666656 0.333496V1.66683H1.99999L4.39999 6.72683L3.49999 8.36016C3.39332 8.54683 3.33332 8.76683 3.33332 9.00016C3.33332 9.7335 3.93332 10.3335 4.66666 10.3335H12.6667V9.00016H4.94666C4.85332 9.00016 4.77999 8.92683 4.77999 8.8335L4.79999 8.7535L5.39999 7.66683H10.3667C10.8667 7.66683 11.3067 7.3935 11.5333 6.98016L13.92 2.6535C13.9733 2.56016 14 2.44683 14 2.3335C14 1.96683 13.7 1.66683 13.3333 1.66683H3.47332L2.84666 0.333496H0.666656ZM11.3333 11.0002C10.6 11.0002 10.0067 11.6002 10.0067 12.3335C10.0067 13.0668 10.6 13.6668 11.3333 13.6668C12.0667 13.6668 12.6667 13.0668 12.6667 12.3335C12.6667 11.6002 12.0667 11.0002 11.3333 11.0002Z",fill:"#2563EB"})," "),questionMark:(0,e.createElement)("svg",{width:"18",height:"18",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"}," ",(0,e.createElement)("path",{d:"M8 0.5C3.86 0.5 0.5 3.86 0.5 8C0.5 12.14 3.86 15.5 8 15.5C12.14 15.5 15.5 12.14 15.5 8C15.5 3.86 12.14 0.5 8 0.5ZM8.75 13.25H7.25V11.75H8.75V13.25ZM10.3025 7.4375L9.6275 8.1275C9.0875 8.675 8.75 9.125 8.75 10.25H7.25V9.875C7.25 9.05 7.5875 8.3 8.1275 7.7525L9.0575 6.8075C9.335 6.5375 9.5 6.1625 9.5 5.75C9.5 4.925 8.825 4.25 8 4.25C7.175 4.25 6.5 4.925 6.5 5.75H5C5 4.0925 6.3425 2.75 8 2.75C9.6575 2.75 11 4.0925 11 5.75C11 6.41 10.73 7.01 10.3025 7.4375Z",fill:"#2563EB"})," "),reset:(0,e.createElement)("svg",{width:"12",height:"12",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"}," ",(0,e.createElement)("path",{d:"M8.53033 1.46875C7.62351 0.5625 6.37899 0 4.99687 0C2.23265 0 0 2.2375 0 5C0 7.7625 2.23265 10 4.99687 10C7.32958 10 9.27455 8.40625 9.83114 6.25H8.53033C8.01751 7.70625 6.62914 8.75 4.99687 8.75C2.92683 8.75 1.24453 7.06875 1.24453 5C1.24453 2.93125 2.92683 1.25 4.99687 1.25C6.03502 1.25 6.9606 1.68125 7.63602 2.3625L5.62226 4.375H10V0L8.53033 1.46875Z",fill:"black"})," "),cross:(0,e.createElement)("svg",{width:"12",height:"12",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M14 1.41L12.59 0L7 5.59L1.41 0L0 1.41L5.59 7L0 12.59L1.41 14L7 8.41L12.59 14L14 12.59L8.41 7L14 1.41Z",fill:"#6B7280"}))};var g=()=>{const[{sidebarOpen:t},a]=c(),s={..."premium"===showcaseCTA?.siteType||"signature"===showcaseCTA?.siteType||"agency-mini"===showcaseCTA?.siteType?{buyNow:{id:"buyNow",title:"Buy Now",icon:p.cart,onclick:()=>{window.open("https://wpastra.com/essential-toolkit-pricing/?utm_source=demos&utm_medium=slide-out","_blank")}}}:{},customize:{id:"customize",title:"Customize",icon:p.customize,onclick:()=>{a({type:"set",sidebarOpen:!t})}}};return(0,e.createElement)("div",{className:"flex flex-col rounded-tl-sm rounded-bl-sm"},Object.keys(s).map(((a,o)=>{const{id:n,title:i,icon:l,onclick:r,className:c}=s[a];return(0,e.createElement)("div",{key:o,id:n,className:`${c||""} st-customize-btn-item relative flex align-center items-center rounded-tl-sm rounded-bl-sm bg-white p-4 border-none mb-[10px]\n\t\t\t\t\t\t${t?"active":""}\n\t\t\t\t\t\t${"buyNow"===n?"":"shadow-customize-btn"}\n\t\t\t\t\t\tcursor-pointer`,onClick:r},(0,e.createElement)("span",{className:"flex items-center gap-3 pointer-events-none"},l,(0,e.createElement)("span",{className:"text-[15px] normal-case leading-4 font-medium tracking-normal pointer-events-none font-DM-sans"},i)))})))},y=({children:t,content:a})=>(0,e.createElement)("div",{className:"stc-tooltip group relative"},t,a?(0,e.createElement)("div",{className:"text-[#ffffff] opacity-0 invisible group-hover:opacity-100 group-hover:visible stc-tooltip-content py-1.5 px-3 absolute right-0 top-[110%] z-100 bg-gray-800 font-normal leading-none text-center min-w-max rounded-sm text-xs shadow-typoTooltip "},a):null);const b=(e,t)=>{if(!e)return"";if(e){const a=e.match(/'([^']+)'/);return a?a[1]:"inherit"===e?t:e}return t||void 0};var E=()=>{const[o]=(0,e.useState)(s),[n,i]=(0,e.useState)([]),[{selectedTypographyIndex:l},r]=c(),d=(e=>{const t={},a=["h1","h2","h3","h4","h5","h6"];if(e){const s=e["astra-settings"]||[];a.forEach((e=>{t["font-family-"+e]=s[`font-family-${e}`],t["font-weight-"+e]=s[`font-weight-${e}`],t["text-transform-"+e]=s[`text-transform-${e}`],t["line-height-"+e]=s[`line-height-${e}`]}))}return t})(showcaseCTA.customizerData),[m]=(0,e.useState)(d);(0,e.useEffect)((()=>{const e=document.getElementById("google-fonts-url"),t=[],a=(e=>{let t={};if(e){const a=e["astra-settings"]||[],s=a["headings-font-family"];t={default:!0,"body-font-family":a["body-font-family"],"body-font-variant":a["body-font-variant"],"body-font-weight":a["body-font-weight"],"font-size-body":a["font-size-body"],"body-line-height":a["body-line-height"],"headings-font-family":s,"headings-font-weight":a["headings-font-weight"],"headings-line-height":a["headings-line-height"],"headings-font-variant":a["headings-font-variant"]}}return t})(showcaseCTA.customizerData);if(t.default=a,i(t),!document.getElementById("google-fonts-domain")){const e=document.createElement("link");e.id="google-fonts-domain",e.setAttribute("rel","preconnect"),e.setAttribute("href","https://fonts.gstatic.com"),document.head.appendChild(e)}e&&e.remove();const s=document.createElement("link");s.id="google-fonts-url",s.setAttribute("rel","stylesheet");const n=[];let l=a["body-font-family"]||"",r=parseInt(a["body-font-weight"])||"";r&&(r=`:wght@${r}`),l&&(l=b(l),l=l.replace(" ","+"),n.push(`family=${l}${r}`));let c=a["headings-font-family"]||"",d=parseInt(a["headings-font-weight"])||"";d&&(d=`:wght@${d}`),c&&(c=b(c,l),c=c.replace(" ","+"),n.push(`family=${c}${d}`));let m="";if(o){for(const e of o)m+=`&family=${b(e["headings-font-family"]).replaceAll(" ","+")}:wght@${e["headings-font-weight"]}&family=${b(e["body-font-family"]).replaceAll(" ","+")}:wght@${e["body-font-weight"]}`;m=m.replace(/[&]{1}$/i,"")}if(n){const e=`https://fonts.googleapis.com/css2?${n.join("&")}${m}&display=swap`;s.setAttribute("href",e),document.head.appendChild(s)}}),[]);const F=()=>{r({type:"set",selectedTypographyIndex:"",typography:{}}),a({param:"siteTypography",data:""})};return(0,e.createElement)("div",{className:"flex flex-col border-b border-gray-200"},(0,e.createElement)("div",{className:"flex align-center justify-between items-center mb-2"},(0,e.createElement)("p",{className:"text-[14px] font-bold text-gray-800 m-0 leading-[27px]"},(0,t.__)("Try Other Fonts","astra-sites-server")),(0,e.createElement)("div",{className:"text-[12px] text-gray-800 "+(""!==l?"reset-btn active cursor-pointer":"reset-btn opacity-40 cursor-not-allowed"),onClick:F},(0,e.createElement)(h,{className:"w-4"}))),(0,e.createElement)("div",{className:"flex flex-col pt-[5px] pb-[20px]"},(0,e.createElement)("ul",{className:"grid grid-cols-4 gap-3 text-center list-none m-0 p-0"},Object.keys(n).map((a=>{const s=b(n[a]["body-font-family"])||"",o=b(n[a]["headings-font-family"],s)||"",i=n[a]["body-font-weight"],r=n[a]["headings-font-weight"];return(0,e.createElement)(y,{content:`${o} / ${s}`,key:a},(0,e.createElement)("li",{className:`border-solid border rounded border-gray-300 px-2 py-1 text-[20px] hover:border-blue-600 hover:cursor-pointer hover:text-blue-600 text-gray-800 transition duration-150 ease-in-out bg-st-background-secondary leading-[27px] ${""===l?"outline-1 outline outline-offset-2 outline-accent-st-secondary":""}\n\t\t\t\t\t\t\t\t\t\thover:transition-all hover:duration-200 hover:ease-linear flex place-content-center items-center`,key:a,tabIndex:"0",title:`${o} / ${s}`,onClick:F},(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{style:{fontFamily:o,fontWeight:r},className:"heading-font-preview"},(0,t.__)("A","astra-sites-server")),(0,e.createElement)("span",{style:{fontFamily:s,fontWeight:i},className:"body-font-preview"},(0,t.__)("a","astra-sites-server")))))})),Object.keys(s).map((o=>{const n=b(s[o]["body-font-family"])||"",i=b(s[o]["headings-font-family"],n)||"",c=s[o]["body-font-weight"],d=s[o]["headings-font-weight"],F=s[o].id;return(0,e.createElement)(y,{content:`${i} / ${n}`,key:F},(0,e.createElement)("li",{className:`border-solid border rounded border-gray-300 px-2 py-1 text-[20px] hover:border-blue-600 hover:cursor-pointer hover:text-blue-600 text-gray-800 transition duration-150 ease-in-out bg-st-background-secondary leading-[27px] ${l===o?"outline-1 outline outline-offset-2 outline-accent-st-secondary":""}\n\t\t\t\t\t\t\t\t\thover:transition-all hover:duration-200 hover:ease-linear`,key:F,tabIndex:"0",title:`${i} / ${n}`,onClick:()=>(e=>{r({type:"set",selectedTypographyIndex:e,typography:s[e]});const t=m?{...s[e],...m}:s[e];a({param:"siteTypography",data:JSON.parse(JSON.stringify(t))})})(o)},(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{style:{fontFamily:i,fontWeight:d},className:"heading-font-preview"},(0,t.__)("A","astra-sites-server")),(0,e.createElement)("span",{style:{fontFamily:n,fontWeight:c},className:"body-font-preview"},(0,t.__)("a","astra-sites-server")))))})))))},v=()=>{const[{sidebarOpen:a,firstTimeShown:s},o]=c(),[n,i]=(0,e.useState)("translate-x-[101%]"),l=(0,e.useRef)();(0,e.useEffect)((()=>(document.addEventListener("click",r,!1),()=>{document.removeEventListener("click",r,!1)})),[a]);const r=e=>{l.current&&!l.current.contains(e.target)&&o({type:"set",sidebarOpen:!1})};return(0,e.useEffect)((()=>{s||setTimeout((()=>{o({type:"set",firstTimeShown:!0}),i("translate-x-0")}),1e3),s&&(setTimeout((()=>{i("translate-x-[86px]")}),50),a||setTimeout((()=>{i("translate-x-0")}),500))}),[a]),(0,e.createElement)("div",{className:"fixed overflow-hidden z-100","aria-labelledby":"slide-over-title",role:"dialog","aria-modal":"true",ref:l},(0,e.createElement)("div",{className:"absolute overflow-hidden"},(0,e.createElement)("div",{className:"absolute","aria-hidden":"true"},(0,e.createElement)("div",{className:`fixed inset-y-0 right-0 pl-[40px] flex w-screen max-w-[368px] transform transition ease-in-out duration-400 sm:duration-500 ${a?"translate-x-0":"translate-x-[101%]"} `},(0,e.createElement)("div",{className:`absolute top-1/3 ${a?"left-[-90px]":"left-[-135px]"} z-1 rounded-tl-sm rounded-bl-sm hover:rounded-tl-sm hover:rounded-bl-sm transform transition linear duration-400 sm:duration-500 ${n}`},(0,e.createElement)(g,null)),(0,e.createElement)("div",{className:"h-full flex flex-col bg-white overflow-y-auto shadow-sidebar"},(0,e.createElement)("div",{className:"py-[20px] px-[25px] shadow-templateName flex items-center justify-between z-[3] leading-none"},(0,e.createElement)("div",{className:"flex"},(0,e.createElement)("p",{className:"text-[18px] font-semibold text-gray-600 m-0",id:"slide-over-title"},showcaseCTA.templateName)),(0,e.createElement)("div",{className:"close-sidebar-btn cursor-pointer border-solid border rounded-sm border-gray-300 p-[6px] hover:border-gray-800",onClick:()=>{o({type:"set",sidebarOpen:!1})}},(0,e.createElement)("span",{className:"flex items-center"},p.cross))),(0,e.createElement)("div",{className:"flex justify-between flex-col h-full z-[2] bg-white"},(0,e.createElement)("div",{className:"px-6 pt-6 main-content"},(0,e.createElement)("p",{className:"text-[14px] text-gray-800 mb-[24px] leading-[27px]"},(0,t.__)("Use the template as-is or try different colors and fonts from the options below.","astra-sites-server")),(0,e.createElement)(E,null),["gutenberg","elementor"].includes(showcaseCTA.pageBuilder[0])&&(0,e.createElement)(u,null)),"template"===("customize",new URLSearchParams(window.location.search).get("customize")||"")&&(0,e.createElement)("div",{className:"px-5 py-3 shadow-show-templates-btn"},(0,e.createElement)("div",{className:"flex place-content-center place-items-center bg-blue-600 hover:bg-blue-700 cursor-pointer text-white font-medium px-9 py-2.5 rounded text-[15px] mb-2.5 hover:transition-all hover:duration-100 hover:ease-linear leading-[27px]",onClick:()=>{window.open(`https://wpastra.com/essential-toolkit-pricing/?utm_source=${showcaseCTA.templateName}&utm_medium=websitedemos&utm_campaign=templatecustomizer`,"_blank")}},(0,t.__)("Buy Now","astra-sites-server")),(0,e.createElement)("div",{className:"flex place-content-center place-items-center bg-white cursor-pointer text-blue-600 hover:text-white hover:bg-blue-600 font-medium px-5 py-[0.525rem] rounded text-[13px] hover:transition-all hover:duration-100 hover:ease-linear border border-blue-600 leading-[27px]",onClick:()=>{window.open(`https://wpastra.com/docs/getting-started-with-starter-templates/?utm_source=${showcaseCTA.templateName}&utm_medium=websitedemos&utm_campaign=templatecustomizer`,"_blank")}},(0,t.__)("Learn how to use this template","astra-sites-server")))))))))};const w=document.getElementById("showcase-cta-entry-root"),x=(0,e.createElement)((({reducer:t,initialState:a,children:s})=>(0,e.createElement)(r.Provider,{value:(0,e.useReducer)(t,a)},s)),{reducer:(e=l,{type:t,...a})=>"set"===t?{...e,...a}:e,initialState:l},(0,e.createElement)((()=>((0,e.useEffect)((()=>{if(showcaseCTA.isMainSite){document.querySelector("body").classList.remove("showcase-cta-preview-palette");const e=document.getElementsByClassName("showcase-cta-preview-palette");e.length>0&&e[0].remove();const t=document.getElementById("showcase-cta-typography");t&&t.remove(),localStorage.removeItem("showcase-cta-preview-data")}}),[]),showcaseCTA.isMainSite?null:(0,e.createElement)(v,null))),null));e.createRoot?(0,e.createRoot)(w).render(x):(0,e.render)(x,w)}},a={};function s(e){var o=a[e];if(void 0!==o)return o.exports;var n=a[e]={exports:{}};return t[e](n,n.exports,s),n.exports}s.m=t,e=[],s.O=function(t,a,o,n){if(!a){var i=1/0;for(d=0;d=n)&&Object.keys(s.O).every((function(e){return s.O[e](a[r])}))?a.splice(r--,1):(l=!1,n0&&e[d-1][2]>n;d--)e[d]=e[d-1];e[d]=[a,o,n]},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={179:0,278:0};s.O.j=function(t){return 0===e[t]};var t=function(t,a){var o,n,i=a[0],l=a[1],r=a[2],c=0;if(i.some((function(t){return 0!==e[t]}))){for(o in l)s.o(l,o)&&(s.m[o]=l[o]);if(r)var d=r(s)}for(t&&t(a);c